<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="../assets/libs/layui/css/layui.css" rel="stylesheet"/>
</head>
<body>

<div class="layui-card">
    <div class="layui-card-header"><span>表单信息</span></div>
    <div class="layui-card-body">
        <from class="layui-form">
            <div class="layui-row">
                <div class="layui-col-md4">
                    <div class="item">
                        <label class="label">签核单号:</label>
                        <div class="item-input">
                            <input type="text" id="orderNumber" name="orderNumber" class="layui-input"  onclick="test(this)" readonly>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md4">
                    <div class="item">
                        <label class="label">起草人:</label>
                        <div class="item-input">
                            <input type="text" name="drafter" class="layui-input"  onclick="test(this)">
                        </div>
                    </div>
                </div>
                <div class="layui-col-md4">
                    <div class="item">
                        <label class="label">起草单位:</label>
                        <div class="item-input">
                            <input type="text" name="draftGroup" class="layui-input" onclick="test(this)">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-md4">
                    <div class="item">
                        <label class="label">采购组织:</label>
                        <div class="item-input">
                            <select name="purchaseCategory">
                                <option value="0000">未定义</option>
                                <option value="1100">面板材料采购</option>
                                <option value="1200">庶务采购</option>
                                <option value="2100">设备采购</option>
                                <option value="2300">厂务采购</option>
                                <option value="2400">电子件采购课</option>
                                <option value="2410">机构件采购课</option>
                                <option value="2600">面板材料开发课</option>
                                <option value="2700">模组材料开发课</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md4">
                    <div class="item">
                        <label class="label">采购组：</label>
                        <div class="item-input">
                            <select name="purchaseGroup_FK">
                                <option value="000">未指定</option>
                                <option value="003">姜  平</option>
                                <option value="014">宋琰丹</option>
                                <option value="016">张媛</option>
                                <option value="023">陈巧巧</option>
                                <option value="029">刘梁</option>
                                <option value="030">陈霞</option>
                                <option value="033">甘小霞</option>
                                <option value="035">王宏权</option>
                                <option value="036">陈志达</option>
                                <option value="037">姚芳</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md4">
                    <div class="item">
                        <label class="label">工厂:</label>
                        <div class="item-input">
                            <select name="plant">
                                <option value="00">未定义</option>
                                <option value="10">1000</option>
                                <option value="20">5000</option>
                                <option value="30">3000</option>
                                <option value="40">3500</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md4">
                    <div class="item">
                        <label class="label">优先级别:</label>
                        <div class="item-input">
                            <select name="isPriority">
                                <option value="0">否</option>
                                <option value="1">是</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </from>
    </div>
</div>

<script src="../assets/libs/jquery.js"></script>
<script src="../assets/libs/layui/layui.js"></script>
<!--<script src="../assets/libs/layui/layer_mobile/layer.js"></script>-->
<script src="./rfq.js"></script>
<script src="../scripts/selectDialog.js"></script>

<script>
    var test = function(element) {
        var url = "http://10.20.46.54:8080/Arcadia/getVendorForRFQ.do?search=";
        var cols = [
            {field:'vendor_ID', title: 'ID'},
            {field:'vendorName', title: '厂商'}
        ];
        selectDialog({
            id: "superDialog",
            cols: cols,
            url: url,
            callback: function(d) {
                $(element).val(d.vendor_ID);
            }
        });
    }
</script>
</body>
</html>